package com.marquis.cloud.client;

import com.marquis.cloud.entity.AutUser;
import com.marquis.cloud.fallBack.LoginFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloud-provider", fallback = LoginFallBack.class)
public interface LoginClient {

    /**
     * 登陆
     * @param userName
     * @return
     */
    @RequestMapping(value = "/login", method = RequestMethod.POST)
    AutUser login(@RequestParam("userName") String userName);
}
